postgresql: fix fails to start on mounted data directories
authorPeiying Huang <[email protected]>
Tue, 12 Aug 2025 06:12:00 +0000 (14:12 +0800)
committerHannu Nyman <[email protected]>
Sat, 25 Oct 2025 05:37:54 +0000 (08:37 +0300)
commit74172f6c54ba8ace36d974d4e1743a4db313f9ee
treee31ae44bbb9b830c8b6e2f6aa1e2a9f1e53651e2
parenteec8d422ddd777b9535ffdb2f37f7459ae134eb7
postgresql: fix fails to start on mounted data directories

This commit resolves a bug where the PostgreSQL service failed to start
during the boot process when its data directory ($pgdata) was on a
partition mounted via `/etc/fstab`.
Because the filesystem is already mounted, no hotplug event is ever
triggered, and the PostgreSQL service mistakenly waits for an event
that will never happen.
This fix adds a check to ensure the script does not skip starting the
service if the data directory is on a mount point.

Signed-off-by: Peiying Huang <[email protected]>
libs/postgresql/Makefile
libs/postgresql/files/postgresql.init